<?php echo $form->create(null, array('controller' => 'users','action' => 'admin_useredit')); ?>

<?php
	$status     = Configure::read('Users.status');
	$registstatus     = Configure::read('Users.registstatus');
	$group_type = Configure::read('Users.group.type');
	$pay_type = Configure::read('Users.pay.type');
?>

<?php
foreach($Users as $fvalue){
?>
ID:
<?php 
	echo $form->hidden('usersedit.id',array('value' => $fvalue['id']));
	echo $fvalue['id'];
?><br>
ショップID：
<?php 
	echo $form->hidden('usersedit.shopid',array('value' => $fvalue['shopid']));
	echo $fvalue['shopid']; 
?><br><br>
グループ：
<?php 
	$group = array(1 => '一般グループ',2 => '管理グループ');
	echo $form->select('usersedit.group',$group,$fvalue['group']);
	//echo $group_type[$fvalue['group']]; 
?><br><br>
APIコード：
<?php echo $fvalue['apikey']; ?><br><br>
ステータス：
<?php 
	$status = array(0 => '無効',1 => '有効');
	echo $form->select('usersedit.status',$status,$fvalue['userstatus']);
	//echo $status[$fvalue['userstatus']]; 
?><br><br>
登録情報：
<?php 
	$registstatus = array(0 => '仮登録',1 => '本登録',2 => '解除');
	echo $form->select('usersedit.registstatus',$registstatus,$fvalue['registstatus']);
	//echo $registstatus[$fvalue['registstatus']]; 
?><br><br>
支払種類：
<?php 
	$paytype = array(1 => '月払',2 => '年払');
	echo $form->select('usersedit.paytype',$paytype,$Premiums['Premiums']['paytype']);
	//echo $pay_type[$Premiums['Premiums']['paytype']]; 
?><br><br>
支払開始日：
<?php 
	echo $form->datetime('usersedit.payfromdate', 'YMD', 'NONE', $Premiums['Premiums']['payfromdate'], array('minYear' => 2010, 'maxYear' => 2020, 'monthNames' => false), false); 
	//echo $Premiums['Premiums']['payfromdate']; 
?><br><br>
支払終了日：
<?php 
	echo $form->datetime('usersedit.paytodate', 'YMD', 'NONE', $Premiums['Premiums']['paytodate'], array('minYear' => 2010, 'maxYear' => 2020, 'monthNames' => false), false); 
	//echo $Premiums['Premiums']['paytodate']; 
?><br><br>
<?php } ?>



<div style="<?php $html->style('form_submit'); ?>">
<?php echo $form->submit('変更', array('div' => false)); ?></div>
<?php echo $form->end(null); ?>

<div id="list_footer">
<?php echo $html->link('検索画面へ戻る', array('action' => 'admin_usersearch')); ?>
</div>
